package com.zd.kids.net;

/**
 * @ClassName: com.example.fancy.myapplication.common
 * @Description:
 * @Author: hyy
 * @Date: 2019/5/16
 * @Time: 4:33 PM
 */
public class BusinessException extends Exception {


    public static final int NO_NETWORK = 1001;
    String msg;
    String code;

    /**
     * Constructs a new exception with {@code null} as its detail message.
     * The cause is not initialized, and may subsequently be initialized by a
     * call to {@link #initCause}.
     */
    public BusinessException(String msg, String code) {
        this.msg = msg;
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
